<?php 
require_once("lib/IXR_Library.php.inc");
$client->debug = true; //Set it to false in Production Environment

 $username = "admin"; 
 $password = "asdf1234"; 
 $domain = "enel15"; //mysubdomain
 $title = "Test Title Edit";
 $path = ""; //path
  $wp_url = 'bestbuyfinders.com';    // e.g. http://www.boxoft.net
	//$wp_url = 'http://car.2supercar.co.cc';    // e.g. http://www.boxoft.net
	$newblog_url = $domain.".".$wp_url;

	 $wp_xmlrpc_url = 'http://'.$wp_url.'/xmlrpc.php';
 

// Create the client object
$client = new IXR_Client($wp_xmlrpc_url);
 

 $params = array(
			$username,
			$password,
			array(
				'domain'  => $newblog_url,
				'path'    => $path,
				//'title'   => $title,
				//'user_id' => "user" . rand() . "@example.com",
			),
		);
 
// Run a query for PHP
if (!($client->query('ms.GetBlogId', $params))) {
    die('Something went wrong - '.$client->getErrorCode().' : '.$client->getErrorMessage());
}
else
    echo "Blog ID = ".$client->getResponse();
	echo "<br>blog url : ".$newblog_url;
 
?>

